@extends('admin.layout.common')
@section('content')
    <link rel="stylesheet" type="text/css" href="{{URL::asset('/js/layui-v2.3.0/layui/css/layui.css')}}">
    <link rel="stylesheet" type="text/css" href="{{URL::asset('css/music/MusicStatistics.css')}}">
    <link rel="stylesheet" type="text/css" href="{{URL::asset('css/music/WorkOnline.css')}}">
    <style>
        input.error { border: 1px solid red; }
        label.error {
            background:url("./demo/images/unchecked.gif") no-repeat 0px 0px;

            padding-left: 16px;

            padding-bottom: 2px;

            font-weight: bold;

            color: #EA5200;
        }
        label.checked {
            background:url("./demo/images/checked.gif") no-repeat 0px 0px;
        }
    </style>
    <div class="content">
        <h1 class="h1">音乐作品上线</h1>
        <!-- 公共结束 -->
        <div class="content_box">
            <ul>
                <li class="active">
                    <div>
                        <span><span>常规发布</span></span>
                    </div>
                    <div class="bg_orange">
                        <p>根据歌曲提交情况自适应</p>
                        <p>将按照用户上传时默认选择的渠道进行发布</p>
                    </div>
                </li>
                <li class="li2" onclick=chooseMusic3(1)>
                    <div>
                        <span><span>独家首发</span></span>
                    </div>
                    <div class="bg_green">
                        <p>将歌曲指定给一家首发</p>
                        <p>请选择指定音乐、时间、SP公司</p>
                    </div>
                </li>
                <li class="li3" onclick=chooseMusic3(2)>
                    <div>
                        <span><span>独  家</span></span>
                    </div>
                    <div class="bg_cyan">
                        <p>将歌曲指定给一家独发</p>
                        <p>请选择指定音乐、时间、SP公司</p>
                    </div>
                </li>
                <li class="li4" onclick=chooseMusic3(3)>
                    <div>
                        <span><span>特殊授权</span></span>
                    </div>
                    <div class="bg_cyan">
                        <p>将歌曲指定给指定公司</p>
                        <p>请选择指定音乐、时间、公司</p>
                    </div>
                </li>
            </ul>
            <div class="qiehuan_box" >
                <div style="display:block;">
                    <p>
                        <span>常规上线</span>
                    </p>
                    <form class="storage_box" action="{{url('/admin/workOnline')}}" style="margin:20px 0;position:relative;">
                            <label for="" class="label_size">
                                <input type="checkbox" name="library[]" value="常规库">常规库
                            </label>
                            <label for="" class="label_size">
                                <input type="checkbox" name="library[]" value="自有库">自有库
                            </label>
                            <label for="" class="label_size">
                                <input type="checkbox" name="library[]" value="保护库">保护库
                            </label>
                            <label for="" class="label_size">
                                <input type="checkbox" name="library[]" value="买断库">买断库
                            </label>
                        <button type="submit" class="layui-btn layui-btn-radius layui-btn-danger" style="position:absolute;top:0;right:20px;">筛选库</button>
                    </form>
                    <table>
                        <tr>
                            <th>KID</th>
                            <th>库</th>
                            <th>作品级别</th>
                            <th>伴奏</th>
                            <th>短音频</th>
                            <th>MV</th>
                            <th>卡拉OK</th>
                            <th>作品名</th>
                            <th>专辑名</th>
                            <th>表演者</th>
                            <th>性质</th>
                            {{--<th>授权描述</th>--}}
                            <th>代理</th>
                        </tr>
                        @foreach($list as $v)
                        <tr>
                            <td>{{ $v['id'] }}</td>
                            <td>{{$v['music_check']['library']}}</td>
                            <td>{{$v['music_check']['work_rate']}}</td>
                            @if(!empty($v['accompaniment_file_uuid']))
                                <td>√</td>
                            @else
                                <td>/</td>
                            @endif
                            @if(!empty($v['video_file_uuid']))
                                <td>√</td>
                            @else
                                <td>/</td>
                            @endif
                            @if(!empty($v['mv_file_uuid']))
                                <td>√</td>
                            @else
                                <td>/</td>
                            @endif
                            @if(!empty($v['karaoke_file_uuid']))
                                <td>√</td>
                            @else
                                <td>/</td>
                            @endif
                            <td>{{$v['title']}}</td>
                            <td>@if($v['album']){{$v['album']}}@else{{$v['title']}}@endif</td>
                            <td>{{$v['performer']}}</td>
                            <td>{{$v['property']}}</td>
                            {{--<td>1845554</td>--}}
                            @if(!empty($v['music_info']['software_id']))
                                <td>{{$v['user'][0]['simple_name']}}</td>
                            @else
                                <td>/</td>
                            @endif
                        </tr>
                        @endforeach
                    </table>
                    <div id="demo2"></div>
                    <p style="text-align: center"><button type="button" class="submit" onclick="javascript:window.location.href='{{url('admin/musicBySp/0/'.json_encode($_GET['library'] ?? 1))}}'">确认信息</button></p>
                </div>
                <div>
                    <div class="add"   style="display:block;">
                        <p>
                            <span>独家首发发布</span>
                        </p>
                        <p>
                            <button type="button" class="addzuopin">添加作品</button>
                        </p>
                        <table id="workSearchList1">
                            <thead>
                                <th>KID</th>
                                <th>库</th>
                                <th>作品级别</th>
                                <th>伴奏</th>
                                <th>短音频</th>
                                <th>MV</th>
                                <th>卡拉OK</th>
                                <th>作品名</th>
                                <th>专辑名</th>
                                <th>表演者</th>
                                <th>性质</th>
                                {{--<th>授权描述</th>--}}
                                <th>代理</th>
                            </thead>
                            <tbody></tbody>
                        </table>
                        <div id="demo2-1"></div>
                        <p style="text-align: center"><button type="button" class="submit" onclick="javascript:window.location.href='{{url('admin/musicBySp/1')}}'">确认信息</button></p>
                    </div>
                    <div class="card" style="display:none;">
                        <p>
                            <span style="border:none;">独家首发发布</span>
                        </p>
                        <form method="post"  id="searchForm1">
                            <p>
                                {{csrf_field()}}
                                <label for="">作品名：<input type="text" placeholder="作品名" name="title"></label>
                                <label for="">表演者：<input type="text" placeholder="表演者" name="performer"></label>
                                <label for="">专辑名：<input type="text" placeholder="专辑名" name="album"></label>
                                <input type="hidden" name="type" value="3"/>
                                <button type="button" class="chazhao submit" onclick=workSearch(1)>查找</button>
                            </p>
                        </form>
                        <table id="workSearch1">
                            <thead>
                            <tr>
                                <th>KID</th>
                                <th>库</th>
                                <th>作品级别</th>
                                <th>伴奏</th>
                                <th>短音频</th>
                                <th>MV</th>
                                <th>卡拉OK</th>
                                <th>作品名</th>
                                <th>专辑名</th>
                                <th>表演者</th>
                                <th>性质</th>
                                {{--<th>授权描述</th>--}}
                                <th>代理</th>
                            </tr>
                            </thead>
                            <tbody></tbody>
                        </table>
                        <form method="post" class="cmxform" id="firstForm1">
                            <p>
                                <label for="first_area">选择首发：</label>
                                <select name="first_area" required>
                                    <option value="">--选择地区--</option>
                                    <option value="1">中国地区独家首发</option>
                                    <option value="2">港澳台地区独家首发</option>
                                    <option value="3">海外地区独家首发</option>
                                    <option value="4">全球范围独家首发</option>
                                </select>
                                <select name="first_sp" required>
                                    <option value="">选择首发SP</option>
                                    @foreach($sp as $v)
                                        <option value="{{$v['simple_name']}}">{{$v['simple_name']}}</option>
                                    @endforeach
                                </select>
                                <label for="">首发时间：<input type="text" placeholder="输入时间" name="first_time" style="width: 120px">天</label>
                                <label for="">首发时间：
                                    <input type="date" placeholder="" name="start_time" style="width: 150px" required>
                                </label>
                                <input type="hidden" name="id" class="searchId"/>
                                <input type="hidden" name="type" value="1"/>
                            </p>
                            <p style="text-align: center"><button type="submit" class="button submit" onclick=chooseMusic(1)>选择添加曲目</button></p>
                        </form>
                    </div>
                </div>
                <div>
                    <div class="dujia_add"  style="display:block">
                        <p>
                            <span>独家发布</span>
                        </p>
                        <p>
                            <button type="button" class="add_dujia">添加作品</button>
                        </p>
                        <table id="workSearchList2">
                            <thead>
                            <th>KID</th>
                            <th>库</th>
                            <th>作品级别</th>
                            <th>伴奏</th>
                            <th>短音频</th>
                            <th>MV</th>
                            <th>卡拉OK</th>
                            <th>作品名</th>
                            <th>专辑名</th>
                            <th>表演者</th>
                            <th>性质</th>
                            {{--<th>授权描述</th>--}}
                            <th>代理</th>
                            </thead>
                            <tbody></tbody>
                        </table>
                        <p style="text-align: center"><button type="submit" class="submit" onclick="javascript:window.location.href='{{url('admin/musicBySp/2')}}'">确认信息</button></p>
                    </div>
                    <div class="dujia"  style="display:none">
                        <p>
                            <span>独家发布</span>
                        </p>
                        <form method="post" id="searchForm2">
                            <p>
                                {{csrf_field()}}
                                <label for="">作品名：<input type="text" placeholder="作品名" name="title"></label>
                                <label for="">表演者：<input type="text" placeholder="表演者" name="performer"></label>
                                <label for="">专辑名：<input type="text" placeholder="专辑名" name="album"></label>
                                <input type="hidden" name="type" value="3"/>
                                <button type="button" class="chazhao" onclick=workSearch(2)>查找</button>
                            </p>
                        </form>
                        <table id="workSearch2">
                            <thead>
                            <tr>
                                <th>KID</th>
                                <th>库</th>
                                <th>作品级别</th>
                                <th>伴奏</th>
                                <th>短音频</th>
                                <th>MV</th>
                                <th>卡拉OK</th>
                                <th>作品名</th>
                                <th>专辑名</th>
                                <th>表演者</th>
                                <th>性质</th>
                                {{--<th>授权描述</th>--}}
                                <th>代理</th>
                            </tr>
                            </thead>
                            <tbody></tbody>
                        </table>
                        <form method="post" id="firstForm2">
                            <p>
                                <label for="first_area">选择首发：</label>
                                <select name="first_area" required>
                                    <option value="">--选择地区--</option>
                                    <option value="1">中国地区独家首发</option>
                                    <option value="2">港澳台地区独家首发</option>
                                    <option value="3">海外地区独家首发</option>
                                    <option value="4">全球范围独家首发</option>
                                </select>
                                <select name="first_sp" required>
                                    <option value="">选择首发SP</option>
                                    @foreach($sp as $v)
                                        <option value="{{$v['simple_name']}}">{{$v['simple_name']}}</option>
                                    @endforeach
                                </select>
                                <label for="">首发时间：<input type="text" placeholder="输入时间" name="first_time"  style="width: 120px" required>年</label>
                                <label for="">首发时间：
                                    <input type="date" placeholder="" name="start_time" required style="width: 150px">
                                </label>
                                <input type="hidden" name="id" class="searchId"/>
                                <input type="hidden" name="type" value="2"/>
                            </p>
                            <p style="text-align:center"><button type="submit" class="button submit" onclick=chooseMusic(2)>选择添加曲目</button></p>
                        </form>
                    </div>
                </div>
                <div>
                    <div class="dujiashouquan" style="display:block;">
                        <p>
                            <span>特殊授权</span>
                        </p>
                        <p>
                            <button type="button" class="addtion">添加作品</button>
                        </p>
                        <table id="workSearchList3">
                            <thead>
                            <th>KID</th>
                            <th>库</th>
                            <th>作品级别</th>
                            <th>伴奏</th>
                            <th>短音频</th>
                            <th>MV</th>
                            <th>卡拉OK</th>
                            <th>作品名</th>
                            <th>专辑名</th>
                            <th>表演者</th>
                            <th>性质</th>
                            {{--<th>授权描述</th>--}}
                            <th>代理</th>
                            </thead>
                            <tbody></tbody>
                        </table>
                        <p style="text-align: center"><button type="submit" class="submit" onclick="javascript:window.location.href='{{url('admin/special')}}'">确认信息</button></p>
                    </div>
                    <div class="shushouquan"  style="display:none">
                        <p>
                            <span>特殊授权</span>
                        </p>
                        <form method="post" id="searchForm3">
                            <p>
                                {{csrf_field()}}
                                <label for="">作品名：<input type="text" placeholder="作品名" name="title"></label>
                                <label for="">表演者：<input type="text" placeholder="表演者" name="performer"></label>
                                <label for="">专辑名：<input type="text" placeholder="专辑名" name="album"></label>
                                <input type="hidden" name="type" value="3"/>
                                <button type="button" class="chazhao" onclick=workSearch(3)>查找</button>
                            </p>
                        </form>
                        <table id="workSearch3">
                            <thead>
                            <tr>
                                <th>KID</th>
                                <th>库</th>
                                <th>作品级别</th>
                                <th>伴奏</th>
                                <th>短音频</th>
                                <th>MV</th>
                                <th>卡拉OK</th>
                                <th>作品名</th>
                                <th>专辑名</th>
                                <th>表演者</th>
                                <th>性质</th>
                                {{--<th>授权描述</th>--}}
                                <th>代理</th>
                            </tr>
                            </thead>
                            <tbody></tbody>
                        </table>
                        <form method="post" id="firstForm3">
                           <input type="hidden" name="id" class="searchId"/>
                           <input type="hidden" name="type" value="3"/>
                           <p style="text-align:center"><button type="button" class="button submit" onclick=chooseMusic3(3)>选择添加曲目</button></p>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <link rel="stylesheet" type="text/css" href="{{URL::asset('mobile')}}">
        {{$list->links()}}
    </div>
    {{--<script type="text/javascript" src="{{URL::asset('js/music/musicReport.js')}}"></script>--}}
    <script type="text/javascript" src="{{URL::asset('js/music/WorkOnline.js')}}"></script>
<script>
//领取任务
 function getTask(){
     $.get('http://{{$_SERVER['HTTP_HOST']}}/admin/musicGetTask', function (data) {
         if(data[0]['id']) {
             var tr = '';
             $('.checktable').text(tr);
             for (var i = 0; i < data.length; i++) {
                 tr += "<tr onclick=detail(" + data[i]['id'] + ") id=tr"+ data[i]['id'] +"><td>" + data[i]['performer'] + "</td><td>" + data[i]['property'] + "</td><td>" + data[i]['created_at'] + "</td>"
             }
         }else{
             tr = '<tr><td>无任务</td></tr>';
         }
         $('.checktable').append(tr);
     })
 }
 //获取详情
 function detail(id){
     $(".checktable tr").css('background','#fff');
     $.get('http://{{$_SERVER['HTTP_HOST']}}/admin/musicDetail/'+id,function(data){
         if(data[0]['id']) {
             $(".detail1").text(data[0]['title']);
             $(".detail2").text(data[0]['performer']);
             $(".detail3").text(data[0]['writer']);
             $(".detail4").text(data[0]['composer']);
             $(".detail5").text(data[0]['album']);
             $(".detail6").text(data[0]['neighboring_right_1']);
             $(".detail7").text(data[0]['neighboring_right_2']);
             $(".detail8").text(data[0]['neighboring_right_3']);
             $(".detail9").attr('src',data[0]['cover']);
             $(".detail14").text(data[0]['lyrics']);
             $(".detail15").text(data[0]['description']);
             $(".detail16").attr('src', data[0]['music_file']['local_path']);
             if(data[0]['accompaniment_file']) {
                 $("input[name='accompaniment_file_uuid']").val(data[0]['accompaniment_file_uuid']);
                 $(".detail17").attr('src', data[0]['accompaniment_file']['local_path']);
             }
             if(data[0]['video_file']) {
                 $("input[name='video_file_uuid']").val(data[0]['video_file_uuid']);
                 $(".detail18").attr('src', data[0]['video_file']['local_path']);
             }
             if(data[0]['mv_file']) {
                 $("input[name='mv_file_uuid']").val(data[0]['mv_file_uuid']);
                 $(".detail19").attr('src', data[0]['mv_file']['local_path']);
             }
             if(data[0]['karaoke_file']) {
                 $("input[name='karaoke_file_uuid']").val(data[0]['karaoke_file_uuid']);
                 $(".detail20").attr('src', data[0]['karaoke_file']['local_path']);
             }
             $("#tr"+id).css('background','#CF2121');
             $("input[name='id']").val(id);
             $("input[name='album_id']").val(data[0]['album_id']);
             $("input[name='music_file_uuid']").val(data[0]['music_file_uuid']);
         }
     })
 }
//打回重审
 function back(){
     $.get('http://{{$_SERVER['HTTP_HOST']}}/admin/reiterateMusic', function (data) {
         if(data[0]['id']) {
             var tr = '';
             $('.backcheck').text(tr);
             for (var i = 0; i < data.length; i++) {
                 tr += "<tr onclick=detail(" + data[i]['id'] + ") id=tr"+ data[i]['id'] +"><td>" + data[i]['performer'] + "</td><td>" + data[i]['property'] + "</td><td>" + data[i]['created_at'] + "</td>"
             }
         }else{
             tr = '<tr><td>无任务</td></tr>';
         }
         $('.backcheck').append(tr);
     })
 }
//搜索音乐1独家首发2独家3特殊
 function workSearch(pars){
     $.post("{{url('admin/workOnlineSearch')}}",$('#searchForm'+pars).serialize(), function (data) {
         if(data['data'][0]['id']) {
             var tr = '';
             var id = '';
             $('#workSearch'+pars+' tbody').html('');
             for (var i = 0; i < data['data'].length; i++) {
                 var accompaniment = data['data'][i]['accompaniment_file_uuid']?'√':'/';
                 var video = data['data'][i]['video_file_uuid']?'√':'/';
                 var mv = data['data'][i]['mv_file_uuid']?'√':'/';
                 var karaoke = data['data'][i]['karaoke_file_uuid']?'√':'/';
                 var agent = data['data'][i]['user'][0]['simple_name']?data['data'][i]['user'][0]['simple_name']:'/';
                 tr += "<tr><td>" + data['data'][i]['id'] + "</td><td>" + data['data'][i]['music_check']['library'] + "</td><td>" + data['data'][i]['music_check']['work_rate'] + "</td><td>" + accompaniment + "</td><td>" + video + "</td><td>" + mv + "</td><td>" + karaoke + "</td><td>" + data['data'][i]['title'] + "</td><td>" + data['data'][i]['album'] + "</td><td>" + data['data'][i]['performer'] + "</td><td>" + data['data'][i]['property'] + "</td><td>" + agent + "</td></tr>"
                 id += data['data'][i]['id']+',';
             }
             if (id.length > 0) {
                 id = id.substr(0, id.length - 1);
             }
         }else{
             tr = '<tr><td>无任务</td></tr>';
         }
         $('.searchId').val(id);
         $('#workSearch'+pars+' tbody').append(tr);
     })
 }
//选择的音乐1独家首发2独家
 function chooseMusic(pars){
      $('#firstForm'+pars).validate({
         submitHandler : function (form) {
             $.post('http://{{$_SERVER['HTTP_HOST']}}/admin/musicToSingle', $('#firstForm' + pars).serialize(), function (data) {
                 if (data[0]['id']) {
                     var tr = '';
                     var id = '';
                     $('#workSearchList' + pars + ' tbody').html('');
                     for (var i = 0; i < data.length; i++) {
                         var accompaniment = data[i]['accompaniment_file_uuid'] ? '√' : '/';
                         var video = data[i]['video_file_uuid'] ? '√' : '/';
                         var mv = data[i]['mv_file_uuid'] ? '√' : '/';
                         var karaoke = data[i]['karaoke_file_uuid'] ? '√' : '/';
                         var agent = data[i]['user'][0]['simple_name'] ? data[i]['user'][0]['simple_name'] : '/';
                         tr += "<tr class=single" + data[i]['id'] + "><td>" + data[i]['id'] + "</td><td>" + data[i]['music_check']['library'] + "</td><td>" + data[i]['music_check']['work_rate'] + "</td><td>" + accompaniment + "</td><td>" + video + "</td><td>" + mv + "</td><td>" + karaoke + "</td><td>" + data[i]['title'] + "</td><td>" + data[i]['album'] + "</td><td>" + data[i]['performer'] + "</td><td>" + data[i]['property'] + "</td><td>" + agent + "</td></tr><tr class=single" + data[i]['id'] + "><td colspan='12'>首发发布----授权说明：中地区独家首发，TME集团，3年<span style='float:right'><button type='button' class='delete' onclick=deleteChoose(" + data[i]['id'] + ")>删除</button><button type='button' class='amend' onclick=editorChoose(" + data[i]['id'] + ")>修改</button></span></td></tr>"
                     }
                 }
                 $('.searchId').val(id);
                 $('#workSearchList'+ pars + ' tbody').append(tr);
                 $('#workSearch'+ pars + ' tbody').html('');
                 if (pars == 1) {
                     $('.card').css('display', 'none');
                     $('.add').css('display', 'block');
                 } else if (pars == 2) {
                     $('.dujia').css('display', 'none');
                     $('.dujia_add').css('display', 'block');
                 }
             })
         }
     });
 }
 //3特殊选择不需表单验证
function chooseMusic3(pars){
        $.post('http://{{$_SERVER['HTTP_HOST']}}/admin/musicToSingle', $('#firstForm'+pars).serialize(), function (data) {
            if (data[0]['id']) {
                var tr = '';
                var id = '';
                $('#workSearchList'+pars+ ' tbody').html('');
                for (var i = 0; i < data.length; i++) {
                    var accompaniment = data[i]['accompaniment_file_uuid'] ? '√' : '/';
                    var video = data[i]['video_file_uuid'] ? '√' : '/';
                    var mv = data[i]['mv_file_uuid'] ? '√' : '/';
                    var karaoke = data[i]['karaoke_file_uuid'] ? '√' : '/';
                    var agent = data[i]['user'][0]['simple_name'] ? data[i]['user'][0]['simple_name'] : '/';
                    tr += "<tr class=single" + data[i]['id'] + "><td>" + data[i]['id'] + "</td><td>" + data[i]['music_check']['library'] + "</td><td>" + data[i]['music_check']['work_rate'] + "</td><td>" + accompaniment + "</td><td>" + video + "</td><td>" + mv + "</td><td>" + karaoke + "</td><td>" + data[i]['title'] + "</td><td>" + data[i]['album'] + "</td><td>" + data[i]['performer'] + "</td><td>" + data[i]['property'] + "</td><td>" + agent + "</td></tr><tr class=single" + data[i]['id'] + "><td colspan='12'>首发发布----授权说明：中地区独家首发，TME集团，3年<span style='float:right'><button type='button' class='delete' onclick=deleteChoose(" + data[i]['id'] + ")>删除</button></span></td></tr>"
                }
            }
            $('.searchId').val(id);
            $('#workSearchList'+pars+ ' tbody').append(tr);
            $('#workSearch'+ pars + ' tbody').html('');
            $('.dujiashouquan').css('display', 'block');
            $('.shushouquan').css('display', 'none');
        })
}
//删除所选择的音乐
function deleteChoose(id){
    $.get('http://{{$_SERVER['HTTP_HOST']}}/admin/deleteChoose/'+id, function (data) {
         if(data==200){
             $('.single'+id).remove();
         }
    })
}
//编辑所选的音乐0
 function editorChoose(id){
     layer.open({
         type: 2,
         shadeClose: true, //点击遮罩关闭
         skin: 'layui-layer-rim', //加上边框
         area: ['900px', '240px'], //宽高
         content: "http://{{$_SERVER['HTTP_HOST']}}/admin/editorChoose/"+id
     });
 }

// 阻止form默认表单提交
$.validator.setDefaults({
    debug: true
})

// 阻止chooseMusic默认表单提交
// $.validator.setDefaults({
//     submitHandler: function() {
//         chooseMusic();
//     }
// });

 // $(function(){
 //     $("#addForm").validate({
 //         // errorPlacement: function(error, element) {
 //         //     // Append error within linked label
 //         //     $( element )
 //         //         .closest( "form" )
 //         //         .find( "label[for='" + element.attr( "id" ) + "']" )
 //         //         .append( error );
 //         // },
 //         // errorElement: "span",
 //         rules: {
 //             first_area: {
 //                 required: true,
 //             },
 //             first_sp: {
 //                 required: true,
 //             },
 //             first_time:{
 //                 required: true,
 //                 number: true,
 //             },
 //             start_time: {
 //                 required: true,
 //             },
 //         },
 //         message:{
 //             first_area: {
 //                 required: "请选择首发项",
 //             },
 //             first_sp: {
 //                 required: "请选择首发SP",
 //             },
 //             first_time:{
 //                 required: "请输入时间",
 //                 number: "必须输入合法的数字"
 //             },
 //             start_time: {
 //                 required: "请选择时间",
 //             },
 //         }
 //     });
 // });


</script>
@endsection








